// --------------------------------------------------
// 卡片
// @Author: steven.wjx
// @Date:   2020-03-05 13:17:50
// --------------------------------------------------
.#{$ui-name}card {
	position: relative;
	min-width: 0;
	word-wrap: break-word;
	margin-bottom: 15px;
	border: 1px solid $border-color;
	border-radius: $border-radius/2;
	box-shadow: $box-shadow;

	.#{$ui-name}card-title {
		margin-top: 0;
		margin-bottom: 0;
	}

	.#{$ui-name}card-text {
		font-size: ceil($font-size/1.2);
		margin-top: 0;
		margin-bottom: 10px;
	}

	.#{$ui-name}card-head {
		padding: 10px 20px;
		margin-bottom: 0; // Removes the default margin-bottom of <hN>
		border-bottom: 1px solid $border-color;
		@include clearfix;

		.#{$ui-name}card-title {
			float: left;
			font-size: $font-size;
		}

		.#{$ui-name}card-extra {
			float: right;
			font-size: ceil($font-size/1.2);
			line-height: floor($font-size*1.45);
		}
	}

	.#{$ui-name}card-body {
		padding: 10px 20px;

		>.#{$ui-name}card-title {
			font-size: $font-size;
			margin-bottom: 5px;
		}
	}

	.#{$ui-name}card-foot {
		padding: 10px 20px;
		border-top: 1px solid $border-color;
	}

	.#{$ui-name}card-img {
		width: 100%; // Required because we use flexbox and this inherently applies align-self: stretch
	}

	.#{$ui-name}card-img-top {
		.#{$ui-name}card-img {
			display: block;
			width: 100%;
			height: auto;
			border-radius: $border-radius/2 $border-radius/2 0 0;
		}
	}

	.#{$ui-name}card-media {
		position: relative;
		padding-left: 90px;
		min-height: 80px;
		margin-bottom: 10px;

		.#{$ui-name}card-media-left {
			position: absolute;
			left: 0;
			top: 0;
			width: 80px;
			height: 80px;
			line-height: 80px;
			text-align: center;

			>img {
				max-width: 100%;
				max-height: 100%;
				vertical-align: middle;
			}
		}

		.#{$ui-name}card-media-block {
			.#{$ui-name}card-media-title {
				font-size: $font-size;
				margin-top: 0;
				margin-bottom: 5px;
			}

			.#{$ui-name}card-media-text {
				font-size: floor($font-size/1.5);
				margin-top: 0;
				margin-bottom: 0;
			}
		}
	}

}

// 卡片组
.#{$ui-name}card-group {
	width: 100%;
	@include clearfix;

	>.#{$ui-name}card {
		float: left;
		margin-bottom: 15px;
		box-sizing: border-box;
	}
}